package br.com.frbb.ugvbr.camera;

import android.app.Activity;
import br.com.frbb.ugvbr.camera.opencv.OpenCVCameraCapturerImpl;

public final class CameraCapturerFactory {

	private static CameraCapturer cameraCapturer = null;
	
	public static CameraCapturer getCapturer(Activity activity) {
		if(cameraCapturer == null) {
			cameraCapturer = new OpenCVCameraCapturerImpl(activity);
		}
		
		return cameraCapturer;
	}
	
}
